package service;

import java.util.List;

import models.Video;

public class VideoService {
	/**
	 * 
	 * @return
	 */
	public static List<Video> findAll(){
		return Video.findAll();
	}
	/**
	 * 
	 * @param id
	 * @return
	 */
	public static Video findById(long id){
		return Video.findById(id);
	}
	/**
	 * 
	 * @param vid
	 */
	public static void create(Video vid){
		vid.create();
	}
	/**
	 * 
	 * @param vid
	 */
	public static void save(Video vid){
		vid.save();
	}
	/**
	 * 
	 * @param id
	 */
	public static void delete(long id){
		Video.findById(id)._delete();
	}
}
